package com.acquisition.service.impl;

import com.acquisition.entity.SysRequestPath;
import com.acquisition.mapper.SysRequestPathMapper;
import com.acquisition.service.SysRequestPathService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Jay Chou
 * @Description 请求路径(SysRequestPath)表服务实现类
 * @Date 2023-04-12 12:28
 **/
@Service("sysRequestPathService")
public class SysRequestPathServiceImpl implements SysRequestPathService {
    @Resource
    private SysRequestPathMapper sysRequestPathMapper;

    /**
     * @Author Jay Chou
     * @Description 通过id查询接口路径信息
     * @Date 2023-04-12 14:12
     * @param id
     * @return com.acquisition.entity.SysRequestPath
     **/
    @Override
    public SysRequestPath queryById(Integer id) {
        return sysRequestPathMapper.queryById(id);
    }

    /**
     * @Author Jay Chou
     * @Description 通过实体作为筛选条件查询接口路径信息列表
     * @Date 2023-04-12 14:17
     * @param sysRequestPath
     * @return java.util.List<com.acquisition.entity.SysRequestPath>
     **/
    @Override
    public List<SysRequestPath> queryRequestPathList(SysRequestPath sysRequestPath) {
        return sysRequestPathMapper.queryRequestPathList(sysRequestPath);
    }

    /**
     * @Author Jay Chou
     * @Description 新增接口路径
     * @Date 2023-04-12 14:12
     * @param sysRequestPath
     * @return int
     **/
    @Override
    public int insert(SysRequestPath sysRequestPath) {
        return sysRequestPathMapper.insert(sysRequestPath);
    }

    /**
     * @Author Jay Chou
     * @Description 修改接口路径
     * @Date 2023-04-12 14:13
     * @param sysRequestPath
     * @return int
     **/
    @Override
    public int update(SysRequestPath sysRequestPath) {
        return sysRequestPathMapper.update(sysRequestPath);
    }

    /**
     * @Author Jay Chou
     * @Description  删除接口路径
     * @Date 2023-04-12 14:13
     * @param id
     * @return int
     **/
    @Override
    public int deleteById(Integer id) {
        return sysRequestPathMapper.deleteById(id);
    }

}